package com.liuqi.loggers.core;

import com.liuqi.loggers.api.Logger;

/**
 * 日志上下文
 *
 * @author liuqi
 * @date 2024/10/14 15:40
 **/
public interface Context extends LifeCycle {

    String ROOT_LOGGER_NAME = "ROOT";

    /**
     * @return  context name
     */
    String getName();

    /**
     * 获取日志实例
     *
     * @param name
     * @return
     */
    Logger getLogger(String name);

    /**
     * 追加日志
     *
     * @param event
     * @return
     */
    void append(LoggerEvent event);

}
